package com.example.glgk.mapper;

import com.example.glgk.dto.indicator.IndicatorCalculateDto;
import com.example.glgk.entity.report.ReportTaskEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lxk
 */
@Mapper
public interface ReportTaskMapper {

    ReportTaskEntity selectById(int taskId);

    void update(ReportTaskEntity reportTaskEntity);

    void insert(ReportTaskEntity reportTaskEntity);

    List<String> selectReportTasks(@Param("times") List<String> times, @Param("dept") String dept,@Param("parentDepartmentId")String parentDepartmentId);

    List<String> selectReportTasksByYear(IndicatorCalculateDto indicatorCalculateDto);
}
